<?php

class HistoryAction extends Action{
    public function index(){
        $m=D('UserBase','App');
        $rs=$m->field('ub_loginHistory')->where('ub_id='.$_SESSION['admin']['userid'])->find();
        $this->assign('history',unserialize($rs['ub_loginHistory']));
        $this->display();
    }           
}	
?>